package com.carskeeper.body.service;

import com.carskeeper.common.dtos.PageResponseResult;
import com.carskeeper.common.dtos.ResponseResult;
import com.carskeeper.model.body.dtos.BodyProviderDto;
import com.carskeeper.model.body.dtos.QueryProviderDto;
import com.carskeeper.model.body.dtos.UpdateProvideStatusDto;
import com.carskeeper.model.body.pojos.BodyProvider;
import com.carskeeper.model.body.vo.BodyProviderListUserVo;
import com.carskeeper.model.body.vo.BodyProviderListVo;
import com.carskeeper.model.body.vo.BodyServiceVo;

import java.util.List;

public interface BodyProviderService {
    /**
     * 查找提供商列表
     * @param dto
     * @return
     */
    PageResponseResult<List<BodyProviderListVo>> providerList(QueryProviderDto dto);

    /**
     * 更新提供商状态
     * @param dto
     * @return
     */
    ResponseResult updateProviderStatus(UpdateProvideStatusDto dto);

    /**
     *
     * @param id
     * @return
     */
    ResponseResult<BodyServiceVo> findService(Long id);

    /**
     * 保存服务商
     * @param dto
     * @return
     */
    ResponseResult saveProvider(BodyProviderDto dto);

    /**
     * 主体用户主体列表
     * @param dto
     * @return
     */
    PageResponseResult<List<BodyProviderListUserVo>> providerBodyList(QueryProviderDto dto);
}
